package com.course.model;

public class SysPermission {

    int reqCode;
    String pTitle = "";
    String pDesc = "";
    String[] permissions = new String[]{};


    public SysPermission(int reqCode, String pTitle, String pDesc, String[] permissions) {
        this.reqCode = reqCode;
        this.pTitle = pTitle;
        this.pDesc = pDesc;
        this.permissions = permissions;
    }

    public SysPermission(int reqCode, String pTitle, String pDesc, String permission) {
        this.reqCode = reqCode;
        this.pTitle = pTitle;
        this.pDesc = pDesc;
        this.permissions = new String[]{permission};
    }


    public int getReqCode() {
        return reqCode;
    }

    public void setReqCode(int reqCode) {
        this.reqCode = reqCode;
    }

    public String getpTitle() {
        return pTitle;
    }

    public void setpTitle(String pTitle) {
        this.pTitle = pTitle;
    }

    public String getpDesc() {
        return pDesc;
    }

    public void setpDesc(String pDesc) {
        this.pDesc = pDesc;
    }

    public String[] getPermissions() {
        return permissions;
    }

    public void setPermissions(String[] permissions) {
        this.permissions = permissions;
    }


}
